package com.wyu.notaryserver.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Zhenxin.lin 2024-1-4
 * @version 1.0
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PkmsArticle implements Serializable{

    private static final long serialVersionUID= 920427188906844705L;

    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    /**标题*/
    @TableField(value = "title")
    private String title;

    /**文章内容*/
    @TableField(value = "content")
    private String content;

    /**文章摘要*/
    @TableField(value = "summary")
    private String summary;

    /**所属分类id*/
    @TableField(value = "category_id")
    private Long categoryId;

    /**是否置顶（0否，1是）*/
    @TableField(value = "is_top")
    private String isTop;

    /**状态（0已发布，1草稿）*/
    @TableField(value = "status")
    private String status;

    /**访问量*/
    @TableField(value = "view_count")
    private Long viewCount;

    @TableField(value = "create_by")
    private Long createBy;

    /** 创建时间 */
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_by")
    private Long updateBy;

    /** 修改时间 */
    @TableField(value = "update_time" , fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**删除标志（0代表未删除，1代表已删除）*/
    @TableField(value = "del_flag")
    private Integer delFlag;
}

